﻿
@{
    ViewBag.Title = "PerformanceDeptSetting";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}

@section css{
    <link rel="stylesheet" href="~/assets/portal/assets/css/common.css" />
    <link rel="stylesheet" href="~/bussiness/js/base/reset.css" />
    <style>
        .ant-select-arrow, .ant-select-clear {
            position: absolute;
            right: 10px;
        }
    </style>
}
<div id="PerformanceDpetSet" class="font-['SourceHanSansSC']">
    <a-style-provider hash-priority="high">
        <a-config-provider :locale="vlocale">
            <header class="px-5 box-border rounded-lg">
                <div class="flex items-center">
                    <div style="border-radius: 4px !important" class="w-full h-[48px] text-[13px]  mx-auto my-[10px]  bg-white  text-[#888888] text-3xl flex items-center px-10">   <div class="w-22 h-22 bg-blue-200 mr-5"> <img class="w-full h-full cursor-pointer" v-on:click="PerformanceDpetSetParams.vvback()" src="~/Assets/nimgs/exit.png" alt="返回" /></div> <span class="text-[]">首页<span class="mx-2">/</span>履职考核<span class="mx-2">/</span><span class="text-[#424758] text-[15px]">部门配置</span> </span>  </div>
                </div>
                <div style="padding: 20px 24px; padding-top: 16px; box-sizing: border-box; border-radius:4px !important" class="w-full h-min-[108px]  bg-white text-[#424758]">

                    <div class="mb-5 text-[16px] font-bold text-black">筛选条件</div>
                    <a-row>
                        <a-form layout="inline"
                                :model="PerformanceDpetSetParams.queryParams.value">
                            <a-form-item label="部门名称">
                                <a-select allow-clear
                                          placeholder="请选择部门"
                                          show-search
                                          :filter-option="PerformanceDpetSetParams.filterOption"
                                          v-model:value="PerformanceDpetSetParams.queryParams.value.dept"
                                          :options="PerformanceDpetSetParams.deptList.value"
                                          style="width:180px">

                                </a-select>
                            </a-form-item>
                                <a-button v-on:click="PerformanceDpetSetParams.queryList" class="ml-4" type="primary">查询</a-button>
                        </a-form>
                    </a-row>

                    <div class="flex w-full mt-10">
                        <a-card :bordered="true" class="w-full  mt-12">
                            <template #title>
                                <div class="w-full flex justify-between items-center">
                                    <div class="flex items-center"> <div>部门列表</div> <div class="ml-7"><a-tag color="#108ee9">总数:{{PerformanceDpetSetParams.pagination.value.total}}</a-tag></div></div>


                                </div>



                            </template>

                            <a-table v-on:change="PerformanceDpetSetParams.handleTableChange" :loading="PerformanceDpetSetParams.pagination.value.loading" class="mt-10" :pagination="PerformanceDpetSetParams.pagination.value" :data-source="PerformanceDpetSetParams.dataSource.value" :columns="PerformanceDpetSetParams.columns.value">

                            </a-table>

                        </a-card>

                    </div>

                </div>


                <a-modal v-model:open="PerformanceDpetSetParams.open.value" width="800px" title="部门信息" v-on:ok="PerformanceDpetSetParams.handleOk">
                    <div style="padding-top:20px">
                        <a-form ref="formRef"
                                layout="horizontal"
                                :model="PerformanceDpetSetParams.formState.value"
                                :rules="PerformanceDpetSetParams.rules.value"
                                :label-col="{ span: 5 }"
                                :wrapper-col="{ span: 12 }">
                            <div style="display:flex;align-items:center;width:100%">
                                <div style="flex:1">

                                    <a-form-item label="部门名称" required name="DepartmentName">
                                        <a-input disabled v-model:value="PerformanceDpetSetParams.formState.value.DepartmentName" />
                                    </a-form-item>

                                    <a-form-item label="扣分系数" name="ScoreRate">
                                        <a-input-number v-model:value="PerformanceDpetSetParams.formState.value.ScoreRate" />
                                    </a-form-item>

                                </div>
                                <div style="flex:1">
                                    <a-form-item label="办公类型" required name="DepartmentTypeId">
                                        <a-select allow-clear
                                                  show-search
                     
                                                  v-model:value="PerformanceDpetSetParams.formState.value.DepartmentTypeId"
                                                  :options="PerformanceDpetSetParams.DepartmentTypeList.value"></a-select>
                                    </a-form-item>

                                    <a-form-item>
                                    </a-form-item>

                                </div>

                            </div>
                            <a-form-item style="position:relative;right:80px" label="填报人员" name="person">
                                <a-select allow-clear
                                          show-search
                                          :filter-option="PerformanceDpetSetParams.filterOption"
                                          mode="multiple"
                                          style="width:100%;"
                                          v-model:value="PerformanceDpetSetParams.formState.value.Type_1_UserList"
                                          :options="PerformanceDpetSetParams.userList.value"></a-select>
                            </a-form-item>


                        </a-form>
                    </div>

                </a-modal>


            </header>
        </a-config-provider>
        </a-style-provider>
</div>
@section Js{
    <script src="~/bussiness/js/base/tailwind.js"></script>
    <script type="module">
        import Composition from '../../bussiness/js/pg/Performance/deptSetting.js?v=@DateTime.Now.ToString("yyyyMMddHHmmss")'
        import localeValues from '../../Bussiness/js/base/es/locale/zh_CN.js'
        singalApp('PerformanceDpetSet', Composition, localeValues)
    </script>
}
